package com.ajx.blog.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
 * @Author: 姜东浩
 * @Date: 2022-04-22 23:52:23
 * 
 * @Description: 课程-买课程的用户关联
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "course_person")
public class CoursePerson implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cpid", type = IdType.AUTO)
    private Integer cpid; // 主键id

    @TableField(value = "cid")
    private Integer cid; // 课程id

    @TableField(value = "userId")
    private Integer userId; // 用户id

    @TableField(value = "createdate")
    private String createdate; // 购买课程时间 数据库timestamp类型,默认自动添加

    @TableField(value = "cstatus")
    private String cstatus; // 状态

    @TableField(value = "remark")
    private String remark; // 备注

}
